﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartSpace.Core
{
    public class User : IGuidKeyEntity
    {
        public Guid Id { get; set; }
        public string Account { get; set; }
        public string Name { get; set; }
        public string Email { get; set; }
        public string MobileNumber { get; set; }
        public DateTime CreatedTime { get; set; }
        public string Password { get; set; }
        public string Prefix { get; set; }

        public static string EncryptMD5(string originalPassword)
        {
            return MD5Helper.MD5(originalPassword);
        }

        public void Validation()
        {
            throw new NotImplementedException();
        }
    }
}
